Modern browsers ship a web API called IntersectionObserver that largely obviates the need for inefficient scroll event listeners. Let's use it to create an infinitely scrolling page using React hooks.